import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
        title: '综合案例',
        home: Scaffold(
          appBar: AppBar(
            title: Text('电影海报综合案例'),
          ),
          body: GridView.count(
            padding: const EdgeInsets.all(10.0),
            crossAxisSpacing: 2.0,
            mainAxisSpacing: 2.0,
            childAspectRatio: 0.618,
            crossAxisCount: 3,
            children: <Widget>[
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2576090251.webp',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2573582509.webp',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2576728533.webp',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2576871245.webp',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2574029074.webp',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2570137991.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2571760178.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2549799943.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2572166063.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2577796191.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2575073184.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2576104854.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2569044398.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2549891899.jpg',
                fit: BoxFit.cover,
              ),
              Image.network(
                'https://img3.doubanio.com/view/photo/s_ratio_poster/public/p2564153041.jpg',
                fit: BoxFit.cover,
              ),
            ],
          ),
        ));
  }
}
